/* 歌单详情页样式 */
.playlist-detail-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 返回按钮 */
.back-button {
  padding: 8px 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.back-button:hover {
  background: #e0e0e0;
}

/* 歌单信息区域 */
.playlist-info-section {
  display: flex;
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.playlist-cover-large {
  width: 200px;
  height: 200px;
  margin-right: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.playlist-cover-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-basic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playlist-name-large {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 15px 0;
  color: #333;
}

.playlist-meta-info {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.playlist-description {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* 歌曲列表区域 */
.songs-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #333;
}

.songs-list {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.song-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s;
}

.song-item:hover {
  background-color: #fafafa;
}

.song-rank {
  width: 40px;
  text-align: center;
  font-size: 14px;
  color: #999;
}

.song-cover {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  overflow: hidden;
  border-radius: 4px;
}

.song-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-info {
  flex: 1;
}

.song-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.song-album {
  font-size: 14px;
  color: #999;
}

.song-actions {
  display: flex;
  gap: 10px;
}

.play-btn {
  padding: 8px 20px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.play-btn:hover {
  background: #40a9ff;
}

/* 加载和错误状态 */
.loading-container, .error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1890ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-container p {
  color: #ff4d4f;
  margin-bottom: 15px;
}

.error-container button {
  padding: 8px 16px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.error-container button:hover {
  background: #40a9ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .playlist-info-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .playlist-cover-large {
    width: 150px;
    height: 150px;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .playlist-name-large {
    font-size: 28px;
  }
  
  .playlist-meta-info {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .playlist-detail-page {
    padding: 10px;
  }
  
  .song-item {
    padding: 10px;
  }
  
  .song-rank {
    display: none;
  }
  
  .song-cover {
    width: 40px;
    height: 40px;
  }
  
  .play-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}